home *** CD-ROM | disk | FTP | other *** search
- Opens a text file.
-
- OPEN [file [varID]] [{/R | /W | /A}]
-
- file is a filename possibly preceded by a volume and path spec.
- The file can be closed with the command CLOSE.
- With no parameters, OPEN displays the list of opened files.
- varID is the name of the variable where the fileID is to be stored.
- If it is missing, the fileID is displayed on the screen.
- /R opens an existing text file to read (see the command READ).
- If the file does not exist, OPEN fails. /R is the default
- when no switch is provided.
- /W opens a new text file to write (see the command WRITE). If
- the file already exists, OPEN deletes it before opening the
- new one.
- /A opens an existing file to write past the current EOF (see the
- command WRITE). If the file does not exist, OPEN creates it.
-
- Only one of /R, /W, and /A at a time is allowed in a command.
-